package com.example.demo.service;

import com.example.demo.exception.MyUncheckedException;
import com.example.demo.pojo.dto.ExamFileDTO;
import com.example.demo.pojo.entity.ExamFile;
import com.example.demo.pojo.entity.SubjectFile;
import com.example.demo.pojo.query.ExamQuery;
import com.example.demo.pojo.vo.ExamFileShowVO;
import com.example.demo.pojo.vo.ExamVO;

import java.util.List;

/**
 * @author fjh
 */
public interface IExamFileService {
    List<ExamFileShowVO> initFile(int subjectId);

    List<ExamVO> filterExam(ExamQuery examQuery);

    int addFile(ExamFileDTO examFileDTO);

    int updateFile(ExamFileDTO examFileDTO);

    boolean deleteFile(int fileId) throws MyUncheckedException;

    ExamFile copyExamFile(int examFileId, int goalExamFileId);

    ExamFile shiftSubjectFile(int examFileId, int goalExamFileId);

    ExamFile searchById(int fileId);
}
